package summer_vacation.liulee.month7.day20150726;
import java.util.Arrays;
/**
 * Created by Administrator on 2015/7/26.
 */
public class Java9 {
    public static void main(String[] args) {
        //定义一个整形数组
        int[] num={23,78,21,11,2,3};
        //利用array的sort（）方法进行排序
        Arrays.sort(num);
        System.out.println("排序后的顺序：");
        //循环输出数组中元素的值
        for (int i=0;i<6;i++){
            System.out.print(" "+num[i]);
        }
    }

}
